<template>
  <div class="body">
    <div class="error-code">404</div>
    <div class="error-message">抱歉，页面未找到。</div>
    <a href="/" class="back-home">返回首页</a>
  </div>
</template>
<style scoped>
.body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  color: #333;
}

.error-message {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 20px;
}

.back-home {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.back-home:hover {
  background-color: #0056b3;
}
</style>
